﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JinfuyuanProject.Entity;

namespace JinfuyuanProject.Repository
{
    public interface IHomeRepository
    {
        #region 基础方法
        IQueryable<Home> GetList();

        Home GetModel(int Id);

        bool Delete(Home student);

        int Insert(Home student);

        bool Update(Home student);
        #endregion

        #region 业务方法
        IEnumerable<T> QueryBySql<T>(string sql);
        //List<HomeVM> GetRoomDetail();
        //ParturientVM GetParturientVM(int id);
        List<Baby> GetBabyDetail(int id);
        List<ServiceDoVM> GetServiceDoVM(int ParturientId);
        IQueryable<Product> ProductAPI();
        #endregion
        #region 异步方法
        Task<bool> UpdateAsync(Home home);
        Task<Home> GetModelAsync(int Id);
        #endregion
    }
}
